home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 July: Mac OS SDK / Dev.CD Jul 00 SDK2.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  3.2 KB  |  168 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        TerminalTools.h
  3.  
  4.      Contains:    Communications Toolbox Terminal tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1988-1999, 1995-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __TERMINALTOOLS__
  18. #define __TERMINALTOOLS__
  19.  
  20. #ifndef __CONDITIONALMACROS__
  21.     #include <ConditionalMacros.h>
  22. #endif
  23.  
  24. #ifndef __DIALOGS__
  25.     #include <Dialogs.h>
  26. #endif
  27.  
  28. #ifndef __TERMINALS__
  29.     #include <Terminals.h>
  30. #endif
  31.  
  32.  
  33.  
  34.  
  35. #if PRAGMA_ONCE
  36. #pragma once
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. #if PRAGMA_IMPORT
  44. #pragma import on
  45. #endif
  46.  
  47. #if PRAGMA_STRUCT_ALIGN
  48.     #pragma options align=mac68k
  49. #elif PRAGMA_STRUCT_PACKPUSH
  50.     #pragma pack(push, 2)
  51. #elif PRAGMA_STRUCT_PACK
  52.     #pragma pack(2)
  53. #endif
  54.  
  55. #if CALL_NOT_IN_CARBON
  56. enum {
  57.     tdefType                    = FOUR_CHAR_CODE('tdef'),
  58.     tvalType                    = FOUR_CHAR_CODE('tval'),
  59.     tsetType                    = FOUR_CHAR_CODE('tset'),
  60.     tlocType                    = FOUR_CHAR_CODE('tloc'),
  61.     tscrType                    = FOUR_CHAR_CODE('tscr'),
  62.     tbndType                    = FOUR_CHAR_CODE('tbnd'),
  63.     tverType                    = FOUR_CHAR_CODE('vers')
  64. };
  65.  
  66. enum {
  67.                                                                 /* messages */
  68.     tmInitMsg                    = 0,
  69.     tmDisposeMsg                = 1,
  70.     tmSuspendMsg                = 2,
  71.     tmResumeMsg                    = 3,
  72.     tmMenuMsg                    = 4,
  73.     tmEventMsg                    = 5,
  74.     tmActivateMsg                = 6,
  75.     tmDeactivateMsg                = 7,
  76.     tmGetErrorStringMsg            = 8,
  77.     tmIdleMsg                    = 50,
  78.     tmResetMsg                    = 51,
  79.     tmKeyMsg                    = 100,
  80.     tmStreamMsg                    = 101,
  81.     tmResizeMsg                    = 102,
  82.     tmUpdateMsg                    = 103,
  83.     tmClickMsg                    = 104,
  84.     tmGetSelectionMsg            = 105,
  85.     tmSetSelectionMsg            = 106,
  86.     tmScrollMsg                    = 107,
  87.     tmClearMsg                    = 108,
  88.     tmGetLineMsg                = 109,
  89.     tmPaintMsg                    = 110,
  90.     tmCursorMsg                    = 111,
  91.     tmGetEnvironsMsg            = 112,
  92.     tmDoTermKeyMsg                = 113,
  93.     tmCountTermKeysMsg            = 114,
  94.     tmGetIndTermKeyMsg            = 115
  95. };
  96.  
  97. enum {
  98.                                                                 /* messages for validate DefProc    */
  99.     tmValidateMsg                = 0,
  100.     tmDefaultMsg                = 1
  101. };
  102.  
  103. enum {
  104.                                                                 /* messages for Setup DefProc    */
  105.     tmSpreflightMsg                = 0,
  106.     tmSsetupMsg                    = 1,
  107.     tmSitemMsg                    = 2,
  108.     tmSfilterMsg                = 3,
  109.     tmScleanupMsg                = 4
  110. };
  111.  
  112. enum {
  113.                                                                 /* messages for scripting defProc    */
  114.     tmMgetMsg                    = 0,
  115.     tmMsetMsg                    = 1
  116. };
  117.  
  118. enum {
  119.                                                                 /* messages for localization defProc  */
  120.     tmL2English                    = 0,
  121.     tmL2Intl                    = 1
  122. };
  123.  
  124.  
  125. struct TMSearchBlock {
  126.     StringHandle                     theString;
  127.     Rect                             where;
  128.     TMSearchTypes                     searchType;
  129.     TerminalSearchCallBackUPP         callBack;
  130.     short                             refnum;
  131.     struct TMSearchBlock *            next;
  132. };
  133. typedef struct TMSearchBlock            TMSearchBlock;
  134. typedef TMSearchBlock *                    TMSearchBlockPtr;
  135.  
  136. struct TMSetupStruct {
  137.     DialogPtr                         theDialog;
  138.     short                             count;
  139.     Ptr                             theConfig;
  140.     short                             procID;                        /* procID of the tool */
  141. };
  142. typedef struct TMSetupStruct            TMSetupStruct;
  143.  
  144. typedef TMSetupStruct *                    TMSetupPtr;
  145. #endif  /* CALL_NOT_IN_CARBON */
  146.  
  147.  
  148. #if PRAGMA_STRUCT_ALIGN
  149.     #pragma options align=reset
  150. #elif PRAGMA_STRUCT_PACKPUSH
  151.     #pragma pack(pop)
  152. #elif PRAGMA_STRUCT_PACK
  153.     #pragma pack()
  154. #endif
  155.  
  156. #ifdef PRAGMA_IMPORT_OFF
  157. #pragma import off
  158. #elif PRAGMA_IMPORT
  159. #pragma import reset
  160. #endif
  161.  
  162. #ifdef __cplusplus
  163. }
  164. #endif
  165.  
  166. #endif /* __TERMINALTOOLS__ */
  167.  
  168.